<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>搜索</title>
	<link rel="stylesheet" href="/index/css/common.css?v=13">
	<link rel="stylesheet" href="/index/css/index.css?v=11">

	<link rel="stylesheet" href="/index/css/search.css?v=12">
	<link rel="stylesheet" href="/index/css/page.css?v=1">
	<script type="text/javascript" src="/index/js/jquery-3.4.1.min.js"></script>

	<style>

	</style>
</head>
<body>

	<div class="">
		<div class="search-header">
			<form action="">
				{if !$keyword}
				<img src="/index/assets/icon/search2.png" alt="" class="search-icon">
				{/if}
			<input type="text" name="keyword" value="{$keyword}" onfocus="$('.search-icon').hide()" oninput="if($('.search-input').val()==''){$('.search-icon').hide()}else{$('.search-icon').hide()}" class="search-input">
			<a href="javascript:;" onclick="$('form').submit()">搜索</a>
			</form>
		</div>
<!--		<p style="color:#3c3f41;margin-left:2.5%;">本站不收录院线资源</p>-->
	</div>
	<div class="record">

		{foreach $list as $v}
		<div class="record-item" onclick="location.href='{:url("movie/details",["id"=>$v["id"]])}'">
			<div class="info-l">
				<img src="{$img_path}{$v.image}" alt="">
			</div>

			<div class="info-r">
				<p class="info-title">{$v.movie_name}</p>
<!--				<p class="info-time">观看至1%</p>-->
				<p>类型：{foreach $v['types'] as $type}{$type.type_name} {/foreach}</p>
<!--				<p>地区：韩国 | 年份：2014</p>-->
				<p>主演：{:ltrim($v.stars)}</p>
				<p>导演：{$v.director}</p>
				<a href="{:url('movie/play',['id'=>$v['id']])}">立即播放</a>
			</div>
		</div>
		{/foreach}
	</div>


	{if $list}
		{$list|raw}
	{/if}
	<div class="clear-float"></div>
	{include file='common/rand_movie'}

	{include file='common/menu'}


</body>
<script type="text/javascript" src="/index/js/clipboard.min.js"></script>
<script src="/index/js/common.js?v=10"></script>
<!--<script src="//cdn.jsdelivr.net/npm/eruda"></script>-->

<script type="text/javascript">
	// eruda.init();


</script>
</html>